package com.sunjq.fetchdata.object;

import android.content.Context;

import com.sunjq.fetchdata.utils.PropertiesUtils;



public class Notice {

	private Integer id;
	
	private String date;
	
	private String venue;
	
	private String title;
	
	private String detailContentUrl;
	
	private String description;
	
	public Notice(String date, String venue, String title, String url, String desc) {
		this.date = date;
		this.venue = venue;
		this.title = title;
		this.detailContentUrl = url;
		this.description = desc;
		
	}
	
	public Notice() {
		
	}
	
	
	
	public Notice(Context context) {
		int temp =  Integer.parseInt(PropertiesUtils.readValue("PK.properties", "NoticePK", context));
		System.out.println("temp ==>" + temp);
		id = ++temp ;
		PropertiesUtils.writeProperties("PK.properties", "NoticePK", id+"", context);
		System.out.println("NoticePKid = >" + Integer.parseInt(PropertiesUtils.readValue("PK.properties", "NoticePK", context)));
	}
	
	private String tag;
	
	public String getDate() {
		return date;
	}

	public String getTitle() {;
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDetailContentUrl() {
		return detailContentUrl;
	}

	public void setDetailContentUrl(String detailContentUrl) {
		this.detailContentUrl = detailContentUrl;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getTag() {
		return tag;
	}

	public void setTag(String tag) {
		this.tag = tag;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public String getVenue() {
		return venue;
	}

	public void setVenue(String venue) {
		this.venue = venue;
	}

	public Integer getId() {
		
		
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	

}
